using System;

 namespace QLST_DTO 
{
	 [Serializable]
	 public class QUAY_TRUNG_BAY
	{
	private int maQuay;
	private string tenQuay;
	private string moTa;
	private int soLuongSP;
	private int maNVQL;
	public QUAY_TRUNG_BAY()
	{}
	public QUAY_TRUNG_BAY(int maQuay,string tenQuay,string moTa,int soLuongSP,int maNVQL)
	{
	this.maQuay = maQuay;
	this.tenQuay = tenQuay;
	this.moTa = moTa;
	this.soLuongSP = soLuongSP;
	this.maNVQL = maNVQL;
	}
	public int MaQuay{
	get { return this.maQuay;}
	set { if(value==null) 
		throw new Exception("maQuay not allow nullvalue.");
		this.maQuay=value;
	}	}
	public string TenQuay{
	get { return this.tenQuay;}
	set { if(value==null) 
		throw new Exception("tenQuay not allow nullvalue.");
		this.tenQuay=value;
	}	}
	public string MoTa{
	get { return this.moTa;}
	set {this.moTa=value;}
	}
	public int SoLuongSP{
	get { return this.soLuongSP;}
	set {this.soLuongSP=value;}
	}
	public int MaNVQL{
	get { return this.maNVQL;}
	set { if(value==null) 
		throw new Exception("maNVQL not allow nullvalue.");
		this.maNVQL=value;
	}	}
	public override string ToString(){
	return this.maQuay+"; "+this.tenQuay+"; "+this.moTa+"; "+this.soLuongSP+"; "+this.maNVQL+"; ";
	}
	public override bool Equals(Object obj)
	{
	QUAY_TRUNG_BAY me=(QUAY_TRUNG_BAY)obj;
	bool ret=this.MaQuay.Equals(me.MaQuay);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.MaQuay.GetHashCode();
	}

	}
} 